﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace zielonka.co.uk.extensions.system
{
    public static partial class DateTimeExtensions
    {
        public static bool IsPast(this DateTime date, DateTime from)
        {
            return date.Date < from.Date;
        }

        public static bool IsPast(this DateTime date)
        {
            DateTime now = DateTime.Now;            
            return date.Date < now;            
        }
    }
}
